package GateKeeper;

import javax.swing.*;

import Exception.LoadDriverException;
import Exception.OpenConnectionException;
import General.TreatError;

public class PrincipalGK
{
	public static void main(String[]args)
	{
		try
		{
			for(UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels())
				if("Nimbus".equals(laf.getName()))
					UIManager.setLookAndFeel(laf.getClassName());
			
			WindowGK mainWindow = new WindowGK();
		}
		catch(LoadDriverException | OpenConnectionException | ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException error)
		{
			TreatError.showError(error);
		}	
	}
}